<?php


define('APPLICATION_PATH', realpath(dirname(__FILE__). '/../application/'));
set_include_path(APPLICATION_PATH. '../../library'. PATH_SEPARATOR .get_include_path());

require_once 'Zend/Loader.php';
Zend_Loader::registerAutoload();

$config = new Zend_Config_Ini('../application/config.ini', 'general');
$registry = Zend_Registry::getInstance();
$registry->set('config', $config);

$db = Zend_Db::factory($config->db);
Zend_Db_Table::setDefaultAdapter($db);

$frontController = Zend_Controller_Front::getInstance();
$frontController->throwExceptions(true);
$frontController->setControllerDirectory('../application/controllers');

$frontController->dispatch();


